package com.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 路亚
 * @version 0.1
 * @className IdClient
 * @description
 * @date 2024/12/11 17:37
 * @since jdk11
 */
@FeignClient(name = "id-service", path = "/pk")
public interface IdClient {

    @GetMapping("/getLongKey")
    long getLongKeyInterval(@RequestParam String type);

    @GetMapping("/getLongRange")
    List<Long> getLongKeyInterval(@RequestParam String type, @RequestParam int count);
}
